package com.qs.auto.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import java.util.List;


/**
 * The persistent class for the auto_vehicle_model_mst database table.
 * 
 */
@Entity
@Table(name="auto_vehicle_model_mst")
public class AutoVehicleModelMst implements Serializable {
	private static final long serialVersionUID = 1L;
	private String vehicleModelId;
	private Date activeDateFrom;
	private String createdBy;
	private Date createdDt;
	private String model;
	private String updatedBy;
	private Date updatedDt;
	private List<AutoVehicleBodyMst> autoVehicleBodyMsts;
	private List<AutoVehicleDetail> autoVehicleDetails;
	private AutoVehicleMakeMst autoVehicleMakeMst;

    public AutoVehicleModelMst() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="VEHICLE_MODEL_ID")
	public String getVehicleModelId() {
		return this.vehicleModelId;
	}

	public void setVehicleModelId(String vehicleModelId) {
		this.vehicleModelId = vehicleModelId;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="ACTIVE_DATE_FROM")
	public Date getActiveDateFrom() {
		return this.activeDateFrom;
	}

	public void setActiveDateFrom(Date activeDateFrom) {
		this.activeDateFrom = activeDateFrom;
	}


	@Column(name="CREATED_BY")
	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="CREATED_DT")
	public Date getCreatedDt() {
		return this.createdDt;
	}

	public void setCreatedDt(Date createdDt) {
		this.createdDt = createdDt;
	}


	@Column(name="MODEL")
	public String getModel() {
		return this.model;
	}

	public void setModel(String model) {
		this.model = model;
	}


	@Column(name="UPDATED_BY")
	public String getUpdatedBy() {
		return this.updatedBy;
	}

	public void setUpdatedBy(String updatedBy) {
		this.updatedBy = updatedBy;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="UPDATED_DT")
	public Date getUpdatedDt() {
		return this.updatedDt;
	}

	public void setUpdatedDt(Date updatedDt) {
		this.updatedDt = updatedDt;
	}


	//bi-directional many-to-one association to AutoVehicleBodyMst
	@OneToMany(mappedBy="autoVehicleModelMst")
	public List<AutoVehicleBodyMst> getAutoVehicleBodyMsts() {
		return this.autoVehicleBodyMsts;
	}

	public void setAutoVehicleBodyMsts(List<AutoVehicleBodyMst> autoVehicleBodyMsts) {
		this.autoVehicleBodyMsts = autoVehicleBodyMsts;
	}
	

	//bi-directional many-to-one association to AutoVehicleDetail
	@OneToMany(mappedBy="autoVehicleModelMst")
	public List<AutoVehicleDetail> getAutoVehicleDetails() {
		return this.autoVehicleDetails;
	}

	public void setAutoVehicleDetails(List<AutoVehicleDetail> autoVehicleDetails) {
		this.autoVehicleDetails = autoVehicleDetails;
	}
	

	//bi-directional many-to-one association to AutoVehicleMakeMst
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="VEHICLE_MAKE_ID")
	public AutoVehicleMakeMst getAutoVehicleMakeMst() {
		return this.autoVehicleMakeMst;
	}

	public void setAutoVehicleMakeMst(AutoVehicleMakeMst autoVehicleMakeMst) {
		this.autoVehicleMakeMst = autoVehicleMakeMst;
	}
	
}